package com.aaa.mapper;

import com.aaa.common.domain.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface DeptMapper extends BaseMapper<Dept> {

    /**
     * 部门表分页
     * @param page
     * @param name
     * @return
     */
    <Page extends IPage<Dept>> Page DeptListP(Page page, @Param("name") String name,@Param("minTime") String minTime,@Param("maxTime") String maxTime);
    /**
     * 部门表逻辑删除
     * @param ids
     * @return
     */
    boolean updateDept(String ids);

    int delete(List<String> ids);

    /**
     * 根据id查询部门
     * @param id
     * @return
     */
    Dept queryById(Integer id);
}
